#ifndef REMOTEDEF_H
#define REMOTEDEF_H

#define OSD_MODULE_NAME "osd_module"

//命令分割符
#define OSD_COMMAND_SP  "|"

//查询指令
#define OSD_COMMAND_QUERY_DEVICE_STATUS             "query_device_status"           //查询设备状态
#define OSD_COMMAND_QUERY_PLATFORM_STATUS           "query_platform_status"         //查询平台注册状态
#define OSD_COMMAND_QUERY_SVC_STATUS                "query_svc_status"              //查询SVC注册状态
#define OSD_COMMAND_QUERY_SYSTEM_STATUS             "query_system_status"           //查询系统状态
#define OSD_COMMAND_QUERY_ENABLE_MIC                "query_enable_mic"              //查询麦克风使用状态
#define OSD_COMMAND_QUERY_ENABLE_CAMERA             "query_enable_camera"           //查询相机使用状态
#define OSD_COMMAND_QUERY_CALL_STATUS               "query_call_status"             //查询呼叫状态
#define OSD_COMMAND_QUERY_PRODUCT_INFO              "query_product_info"            //查询产品信息
#define OSD_COMMAND_QUERY_NETWORK                   "query_network"                 //查询网络状态
#define OSD_COMMAND_QUERY_TIME                      "query_time"                    //查询系统时间
#define OSD_COMMAND_QUERY_CONFIG                    "query_config"                  //查询配置项
#define OSD_COMMAND_QUERY_SCHEDULE                  "query_schedule"                //查询日程
#define OSD_COMMAND_QUERY_NEW_VERSION               "query_new_version"             //查询最新版本
#define OSD_COMMAND_QUERY_STATS                     "query_stats"                   //查询统计信息

//操作指令
#define OSD_COMMAND_REGIST                          "regist"                        //注册
#define OSD_COMMAND_CALL                            "call"                          //呼会
#define OSD_COMMAND_LEAVE_CONF                      "leave_conf"                    //离会
#define OSD_COMMAND_SEND_CONTENT                    "send_content"                  //文档发送
#define OSD_COMMAND_ENABLE_MIC                      "enable_mic"                    //麦克风使能
#define OSD_COMMAND_ENABLE_CAMERA                   "enable_camera"                 //摄像头使能
#define OSD_COMMAND_MODIFY_NETWORK                  "modify_network"                //修改网络|{"ip":"%ip%","mask":"%mask%","gateway":"%gateway%"}
#define OSD_COMMAND_REBOOT                          "reboot"                        //重启
#define OSD_COMMAND_STANDBY                         "standby"                       //待机
#define OSD_COMMAND_MODIFY_CONFIG                   "modify_config"                 //修改配置项{"key":"%key%","value":"%value%"}
#define OSD_COMMAND_UPGRADE_ONLINE                  "upgrade_online"                //在线升级latest/%version%
#define OSD_COMMAND_RECOVER                         "recover"                       //从待机状态恢复

//通信参数关键字
#define OSD_PARAM_KEY_CONFERENCE_NUMBER             "conference_number"             //会议号
#define OSD_PARAM_KEY_ENABLE                        "enable"
#define OSD_PARAM_KEY_IP                            "ip"
#define OSD_PARAM_KEY_MASK                          "mask"
#define OSD_PARAM_KEY_GATEWAY                       "gateway"
#define OSD_PARAM_KEY_KEY                           "key"
#define OSD_PARAM_KEY_VALUE                         "value"


////////////////////////////////////////////////////////////////////////////////////////////////
// 响应关键字定义
////////////////////////////////////////////////////////////////////////////////////////////////

#define KEY_RESP_CODE               "code"
#define KEY_RESP_DATA               "data"

//exception
#define KEY_ERR                     "info"

#define KEY_DEVICE_STATUS           "device_status"
#define KEY_PLATFORM_STATUS         "platform_status"
#define KEY_SVC_STATUS              "svc_status"

#define KEY_RUNTIME                 "runtime"
#define KEY_RESOURCE                "resource"
#define KEY_DISK_TOTAL              "disk_total"
#define KEY_DISK_USED               "disk_used"

#define KEY_MIC_STATUS              "mic_status"
#define KEY_CAMERA_STATUS           "camera_status"

#define KEY_CALL_STATUS             "call_status"
#define KEY_CALL_NUMBER             "conference_number"

#define KEY_PRODUCT_NAME            "name"
#define KEY_PRODUCT_TYPE            "type"
#define KEY_PRODUCT_COMPANY         "company"
#define KEY_PRODUCT_WEBSITE         "website"
#define KEY_PRODUCT_TERMINAL_V      "terminal_version"
#define KEY_PRODUCT_SN              "sn"

#define KEY_NETWORK_IFNAME          "ifname"
#define KEY_NETWORK_IP              "ip"
#define KEY_NETWORK_MASK            "mask"
#define KEY_NETWORK_GATEWAY         "gateway"
#define KEY_NETWORK_MAC             "mac"
#define KEY_NETWORK_DNS             "dns"
#define KEY_NETWORK_ACTIVE          "active"

#define KEY_SYSTIME                 "time"

#define KEY_CONFIG_KEY              "key"
#define KEY_CONFIG_VALUE            "value"
#define KEY_CONFIG_COMMENT          "comment"
#define KEY_CONFIG_TYPE             "type"
#define KEY_CONFIG_INIT             "init"
#define KEY_CONFIG_RANGE            "range"

#define KEY_SCHEDULE_TYPE           "type"        //类型
#define KEY_SCHEDULE_NUMBER         "course_num"                     //会议号
#define KEY_SCHEDULE_NAME           "name"                           //会议名称
#define KEY_SCHEDULE_STARTTIME      "start_time"                     //开始时间
#define KEY_SCHEDULE_ENDTIME        "end_time"                       //结束时间
#define KEY_SCHEDULE_DEVICE         "lecturer_device"                //主讲端
#define KEY_SCHEDULE_PARTICI        "participants"                   //参与者
#define KEY_SCHEDULE_LECTURER       "lecturer"                       //主讲人

#define KEY_NEW_VERSION             "version"

#define KEY_STAT_DIRECT             "dir"                           //方向
#define KEY_STAT_TYPE               "type"                          //类型
#define KEY_STAT_NAME               "name"                          //视频名称
#define KEY_STAT_PROTOCOL           "protocol"                      //协议
#define KEY_ACTUAL_RATE             "bandwidth"                     //实际速率
#define KEY_VEDIO_WIDTH             "width"                         //分辨率
#define KEY_VEDIO_HEIGHT            "height"                        //分辨率
#define KEY_VEDIO_FORMAT            "vedioformat"                   //分辨率
#define KEY_STAT_FPS                "fps"                           //视频帧率
#define KEY_STAT_PACKAGE_LOST       "packet_loss"                   //丢包数
#define KEY_STAT_PACKAGE_LOST_RATE  "packet_loss_rate"              //丢包率
#define KEY_STAT_SAFE               "is_encrypted"                  //加密


#endif // REMOTEDEF_H
